# -*- coding:utf-8 -*-
import os
from tornado.web import StaticFileHandler
from demo import handlers as demoh
from news import handlers as newsh
from circle import handlers as circleh
from user import handlers as userh
from exam import handlers as examh
from ad import handlers as adh
from wechat import handlers as wechath
from pay import handlers as payh
from couch import handlers as couchh

URLS = [

    (r'/download', demoh.DownloadHandler),
    (r'/newslist', newsh.NewsListHandler),
    (r'/newscontent', newsh.NewsContentHandler),
    (r'/uploadimg', newsh.UploadImgHandler),                                  # 上传图片
    (r'/defaultlist', newsh.DefaultListHandler),                              # 上传图片

    (r'/releasec', circleh.ReleaseCHandler),                                  # 发布考友圈
    (r'/deletec', circleh.DeleteCHandler),                                    # 删除考友圈
    (r'/circlelist', circleh.CircleListHandler),                              # 考友圈列表
    (r'/circledetail', circleh.CircleDetailHandler),                          # 考友圈列表
    (r'/reply', circleh.ReplyHandler),                                        # 回复
    (r'/replylist', circleh.ReplyListHandler),                                # 回复列表
    (r'/zan', circleh.ZanHandler),                                            # 赞
    (r'/zanlist', circleh.ZanListHandler),                                    # 赞
    (r'/zanme', circleh.ZanMeHandler),                                        # 收到的赞
    (r'/ireply', circleh.IReplyHandler),                                      # 我回复的
    (r'/replyme', circleh.ReplyMeHandler),                                    # 回复我的
    (r'/mycircle', circleh.MyCircleHandler),                                  # 我的主题

    (r'/sign', userh.SignHandler),                                            # 签到
    (r'/phonelogin', userh.PhoneLoginHandler),                                # 手机号登录
    (r'/otherlogin', userh.OtherLoginHandler),                                # 验证openid是否绑定
    (r'/bindphone', userh.BindPhoneHandler),                                  # 绑定手机号
    (r'/updateuserinfo', userh.UpdateUserInfoHandler),                        # 修改昵称,头像
    (r'/addscore', userh.AddScoreHandler),                                    # 加积分
    (r'/scorelist', userh.ScoreListHandler),                                  # 获取积分列表
    (r'/getcash', userh.GetCashHandler),                                      # 提现（生成兑换码）
    (r'/getversion', userh.GetVersionHandler),                                # 判断版本更新
    (r'/getvipcnt', userh.GetVipCntHandler),                                  # vip用户总数
    (r'/checkwxbind', userh.CheckwxbindHandler),                              # 微信号中判断有没有绑定手机号
    (r'/wxbind', userh.WbindHandler),                                         # 微信号中绑定手机号
    (r'/checkmsg', userh.CheckMsgHandler),                                    # 检查我的消息红点

    (r'/adlist', adh.AdListHandler),                                          # 广告列表
    (r'/adcontent', adh.AdContentHandler),                                    # 广告详情

    (r'/videolist', examh.VideoListHandler),                                  # 视频列表
    (r'/video', examh.VideoHandler),                                          # 视频
    (r'/adderr', examh.UpdateCntHandler),                                     # 更新错题数
    (r'/geterrcnt', examh.GetErrCntHandler),                                  # 获取错题数、星级
    (r'/saveexamres', examh.SaveExamResHandler),                              # 保存考试成绩
    (r'/getexamrank', examh.GetExamRankHandler),                              # 获取排行榜
    (r'/updatetiku', examh.UpdateTikuHandler),                                # 获取排行榜

    (r'/wechat', wechath.WechatHandler),                                      # 公众号回调

    (r'/getorder', payh.GetOrderHandler),                                     # 生成订单
    (r'/wxpay', payh.WxPayHandler),                                           # 微信支付，获取微信预付单ID
    (r'/wxjspay', payh.WxJsPayHandler),                                       # 微信js支付
    (r'/wxnotify', payh.WxNotifyHandler),                                     # 微信支付，回调
    (r'/alipay', payh.AliPayHandler),                                         # 支付宝支付，获取支付宝预付单ID
    (r'/alinotify', payh.AliNotifyHandler),                                   # 支付宝支付，获取支付宝预付单ID
    (r'/sendmsg', payh.SendMsgHandler),                                       # 发送短信验证码

    (r'/schoollist', couchh.GetSchoolHandler),                                                  # 获取驾校列表
    (r'/setcouchschool', couchh.SetCouchSchoolHandler),                                         # 设置教练个人信息驾校
    (r'/getbaseinfo', couchh.GetBaseInfoHandler),                                               # 获取教练基本信息
    (r'/couchinfostatus', couchh.CouchInfoStatusHandler),                                       # 获取教练名片信息状态
    (r'/setbaseinfo', couchh.SetBaseInfoHandler),                                               # 设置教练基本信息
    (r'/setcouchavatar', couchh.SetCouchAvatarHandler),                                         # 设置教练头像
    (r'/setdirveraddr', couchh.SetDriverAddrHandler),                                           # 设置练车地址
    (r'/getdirveraddr', couchh.GetDriverAddrHandler),                                           # 获取练车地址
    (r'/setaddrpics', couchh.SetAddrPicsHandler),                                               # 设置练车场地图片
    (r'/setaddrpicsandroid', couchh.SetAddrPicsAndroidHandler),                                 # 安卓设置练车场地图片
    (r'/getclassinfo', couchh.GetClassInfoHandler),                                             # 获取班型信息
    (r'/setclassinfo', couchh.SetClassInfoHandler),                                             # 设置班型信息
    (r'/delclassinfo', couchh.DelClassInfoHandler),                                             # 删除班型信息
    (r'/setintroduce', couchh.SetIntroduceHandler),                                             # 设置招生特色
    (r'/getintroduce', couchh.GetIntroduceHandler),                                             # 获取招生特色
    (r'/upauthpic', couchh.UpdateAuthPicHandler),                                               # 上传教练认证图片
    (r'/getauthpic', couchh.GetAuthPicHandler),                                                 # 获取教练认证图片
    (r'/createcart', couchh.CreateCardHandler),                                                 # 生成名片
    (r'/couchcircle', couchh.CouchCircledHandler),                                              # 考友圈入口头像

    (r'/consult', couchh.ConsultHandler),                                                       # 报名咨询
    (r'/pubconsult', couchh.PubConsultHandler),                                                 # 一键咨询
    (r'/follow', couchh.FollowHandler),                                                         # 关注取消关注
    (r'/evaluate', couchh.EvaluateHandler),                                                     # 学员评价
    (r'/tjcouchlist', couchh.TjCouchListHandler),                                               # 首页教练列表
    (r'/couchlist', couchh.CouchListHandler),                                                   # 全部教练列表
    (r'/searchcouchlist', couchh.SearchCouchListHandler),                                       # 搜索教练列表
    (r'/myfollower', couchh.MyFollowerHandler),                                                 # 我的学员
    (r'/mycouch', couchh.MyCouchHandler),                                                       # 我的教练
    (r'/myevaluate', couchh.MyEvaluateHandler),                                                 # 我的评价
    (r'/pubconsultlist', couchh.PubConsultListHandler),                                         # 报名通咨询列表
    (r'/consultlist', couchh.ConsultListHandler),                                               # 咨询列表
    (r'/getmyschool', couchh.GetMySchoolHandler),                                               # 我的驾校
    (r'/setmyschool', couchh.SetMySchoolHandler),                                               # 设置我的驾校
    (r'/getcouchdetail', couchh.GetCouchDetailHandler),                                         # 教练详情
    (r'/sharepic', couchh.GetSharePicHandler),                                                  # 获取分享图片
    (r'/studentcnt', couchh.StudentCntHandler),                                                 # 获取学员数量

    (r'/addschool', couchh.AddSchoolHandler),                                                   # 用户添加驾校
    (r'/wechatshare', couchh.WechatShareHandler),                                                   # 用户添加驾校

    # # 视频测试
    (r"/(video\.html)", StaticFileHandler,
    dict(path=os.path.join(os.path.dirname(__file__), "templates"))),#发现_首页

    (r"/(MP_verify_pGFxKW1jBpynuDQN\.txt)", StaticFileHandler,
    dict(path=os.path.join(os.path.dirname(__file__), "static"))),#


]
# print dict(path=os.path.join(os.path.dirname(__file__), "templates", "discovery", "todayZC"))
